//
//  HPContentCell.m
//  hnGovernment
//
//  Created by 安仔 on 17/2/28.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "HPContentCell.h"

@interface HPContentCell ()

@end

@implementation HPContentCell



- (instancetype) initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createHPCollectionCell];
    }
    return self;
}

- (void)createHPCollectionCell {
    self.signImg = [[UIImageView alloc] init];
    self.signImg.clipsToBounds = YES;
    self.signImg.backgroundColor = [UIColor clearColor];
    //self.signImg.image = [UIImage imageNamed:@"社保查询"];
    [self.contentView addSubview:self.signImg];
    [self.signImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView.centerY);
        make.left.mas_equalTo(44*m6Scale);
        make.size.mas_equalTo(CGSizeMake(64*m6Scale, 64*m6Scale));
    }];
    

    self.titleLab = [[UILabel alloc] init];
    self.titleLab.textColor = [UIColor colorWithHexString:@"494949"];
    self.titleLab.font = [UIFont systemFontOfSize:26*m6Scale];
    self.titleLab.textAlignment = NSTextAlignmentLeft;
    self.titleLab.backgroundColor = [UIColor clearColor];
    //self.titleLab.text = NSLocalString(@"更多服务");
    [self.contentView addSubview:self.titleLab];
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self.signImg.mas_centerY).offset(-10*m6Scale);
        make.left.mas_equalTo(self.signImg.mas_right).offset(26*m6Scale);

    }];
    
    
    self.detailsLab = [[UILabel alloc] init];
    self.detailsLab.textColor = [UIColor colorWithHexString:@"a2a2a2"];
    self.detailsLab.font = [UIFont systemFontOfSize:24*m6Scale];
    self.detailsLab.textAlignment = NSTextAlignmentLeft;
    self.detailsLab.numberOfLines = 0;
    self.detailsLab.backgroundColor = [UIColor clearColor];
    //self.detailsLab.text = @"更多服务更多服务更多服务更多服务更多服务";
    [self.contentView addSubview:self.detailsLab];
    [self.detailsLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.signImg.mas_centerY).offset(-2*m6Scale);
        make.left.mas_equalTo(self.titleLab.mas_left);
        make.right.mas_equalTo(self.contentView.mas_right).offset(-30*m6Scale);
    }];
}


@end
